from __future__ import print_function
from datetime import date, datetime, timedelta
import mysql.connector

cnx = mysql.connector.connect(user='root', password='root', database='social')
cursor = cnx.cursor()

tomorrow = datetime.now().date() + timedelta(days=1)

add_employee = ("INSERT INTO authors "
               "(id, name, email) "
               "VALUES (%s, %s, %s)")

data_employee = (2, 'Geert', 'Vanderkelen@abc.com')

# Insert new employee
cursor.execute(add_employee, data_employee)
emp_no = cursor.lastrowid
cnx.commit()


cursor.close()
cnx.close()